package com.forlgb.powercloud.dubbo.provider.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @NacosValue(value = "${service.version}",autoRefreshed = true)
    private String version;

    @RequestMapping("test")
    public String test(){
        return version;
    }

}
